import request from '@/utils/request'

// 查询学员跟踪列表
export function listTracking(query) {
  return request({
    url: '/custom/tracking/list',
    method: 'get',
    params: query
  })
}

// 查询学员跟踪详细
export function getTracking(id) {
  return request({
    url: '/custom/tracking/' + id,
    method: 'get'
  })
}

// 新增学员跟踪
export function addTracking(data) {
  return request({
    url: '/custom/tracking',
    method: 'post',
    data: data
  })
}

// 修改学员跟踪
export function updateTracking(data) {
  return request({
    url: '/custom/tracking',
    method: 'put',
    data: data
  })
}
export function updatesmTracking(data) {
  return request({
    url: '/custom/tracking/followingsm',
    method: 'post',
    data:data
  })
}
// 删除学员跟踪
export function delTracking(id) {
  return request({
    url: '/custom/tracking/' + id,
    method: 'delete'
  })
}
